package com.example.service;

import com.example.domain.BackMessage;
import com.example.domain.ResultData;
import com.example.vo.MessageVo;

import javax.websocket.Session;
import java.util.List;

/**
 * @author zhouxl
 * @DATE 2021/2/2
 * @descriptoin
 */
public interface MessageService {
    /**
     * 接收消息信息
     *
     * @param message
     * @param session
     * @return java.lang.Object
     * @author zhouxl
     * @date 2021-02-02
     */
    BackMessage getMessage(String message, Session session);

    /**
     * 欢迎回来
     *
     * @param uid
     * @param session
     * @return
     */
    BackMessage welcomeBack(String uid, Session session);

    /**
     * 查询好友未读信息
     *
     * @param messageVo
     * @return
     */
    ResultData queryNoReadMessage(MessageVo messageVo);

    /**
     * 广播登录信息
     *
     * @param uid
     * @param session
     * @return
     */
    List<BackMessage> broadcaseLoginMessage(String uid, Session session);
}
